#include <stdio.h>

int sum_array(const int a[], int n){
	int sum = 0, *p;
	for (p = a; p < a+n; ++p){
		sum += *p;
	}
	return sum;
}


int main(){
	const int a[] = {2, 3, 5};
	int sum = sum_array(a, 3);
	printf("SUM IS: %d\n", sum);
}
